package com.group4.edu.mapper;

import com.group4.edu.entity.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.vo.ChapterVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author cloud
 * @since 2022-03-10
 */
@Mapper
public interface ChapterMapper extends BaseMapper<Chapter> {
    /**
     * 查章节带小节
     * @param courseId
     * @return
     */
    List<ChapterVO> selectChapterAndVideoByCourseId(String courseId);
}
